<?php

namespace GAE\AutoecoleBundle\Entity;

use Doctrine\ORM\Mapping as ORM;
use GAE\GAEAutoecoleBundle\Entity;

/**
 * article
 *
 * @ORM\Table()
 * @ORM\Entity
 */
class article
{
    /**
     * @var integer
     *
     * @ORM\Column(name="id", type="integer")
     * @ORM\Id
     * @ORM\GeneratedValue(strategy="AUTO")
     */
    private $id;

    /**
     *  @ORM\ManyToOne(targetEntity="GAE\AutoecoleBundle\Entity\categorie",inversedBy="categorie",cascade={"remove"})
     */ 
     private $categorie;
     /**
     * @var string
     *
     * @ORM\Column(name="code", type="string", length=255)
     */
    private $code;

    /**
     *
     * @var string
     *
     * @ORM\Column(name="designation", type="string", length=255)
     */
    private $designation;


    /**
     * Get id
     *
     * @return integer 
     */
    public function getId()
    {
        return $this->id;
    }

    /**
     * Set code
     *
     * @param string $code
     * @return article
     */
    public function setCode($code)
    {
        $this->code = $code;
    
        return $this;
    }

    /**
     * Get code
     *
     * @return string 
     */
    public function getCode()
    {
        return $this->code;
    }

    /**
     * Set designation
     *
     * @param string $designation
     * @return article
     */
    public function setDesignation($designation)
    {
        $this->designation = $designation;
    
        return $this;
    }

    /**
     * Get designation
     *
     * @return string 
     */
    public function getDesignation()
    {
        return $this->designation;
    }

    /**
     * Set categorie
     *
     * @param \GAE\AutoecoleBundle\Entity\categorie $categorie
     * @return article
     */
    public function setCategorie(\GAE\AutoecoleBundle\Entity\categorie $categorie = null)
    {
        $this->categorie = $categorie;
    
        return $this;
    }

    /**
     * Get categorie
     *
     * @return \GAE\AutoecoleBundle\Entity\categorie 
     */
    public function getCategorie()
    {
        return $this->categorie;
    }
}